import {
	createSSRApp
} from "vue";
import App from "./App.vue";
import uviewPlus from "uview-plus";

export function createApp() {
	const app = createSSRApp(App);
	
	app.use(uviewPlus, () => {
		return {
			options: {
				// 修改 $u.config 对象的属性
				config: {
					// 修改默认单位为 rpx，相当于执行 uni.$u.config.unit = 'rpx'
					unit: 'rpx'
				}
			}
		}
	})
	
	return {
		app,
	};
}